<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCompanyCertTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('company_info', function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer('user_id')->default(0)->comment('用户id');
            $table->string('name')->nullable()->comment('企业名称');
            $table->string('short_name')->nullable()->comment('企业简称');
            $table->string('nature')->nullable()->comment('企业性质');
            $table->string('province')->nullable()->comment('省份ַ');
            $table->string('city')->nullable()->comment('城市ַ');
            $table->string('area')->nullable()->comment('地区ַ');
            $table->string('address_detail')->nullable()->comment('详细地区ַ');
            $table->string('industry')->nullable()->comment('所属行业');
            $table->string('size')->nullable()->comment('企业规模');
            $table->string('introduction')->nullable()->comment('企业简介');
            $table->string('welfare')->nullable()->comment('企业福利');
            $table->string('contacts')->nullable()->comment('联系人');
            $table->string('contact_number')->nullable()->comment('企业固话');
            $table->string('contact_phone')->nullable()->comment('手机号码');
            $table->string('contact_address')->nullable()->comment('联系地址ַ');
            $table->string('license')->nullable()->comment('营业执照');
            $table->integer('photo_id')->default(0)->comment('公司logo');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
